package com.tbit.uqbike.push.controller;

import com.tbit.uqbike.push.pojo.TerPosition;
import com.tbit.uqbike.push.service.MachineStatusService;
import com.tbit.uqbike.push.util.JsonUtils;
import com.tbit.uqbike.push.util.LogUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author chenmengran
 * @Description: 模拟定位测试
 * @date 2019\12\27 002718:00
 */
@RestController
@RequestMapping(value = "/demo", produces = "application/json; charset=utf-8")
public class TestController {
    @Autowired
    private MachineStatusService machineStatusService;

    @RequestMapping("/add")
    public String add(TerPosition terPosition, HttpServletRequest request) {
        LogUtil.info("定位测试：" + JsonUtils.obj2Json(terPosition));
        return "陈壮";
        // 获取用户信息
//        machineStatusService.updatePosition(terPosition);
    }
}
